/****************************************************************************
 *
 *                Admin Over IM
 *
 ****************************************************************************
 *
 *  <Copyright>
 *    Copyright (C) 2008  Basov Alexander
 *
 *  <Unit> j_create_stream.cpp
 *   <ImplementationNotes>
 *   <PortabilityIssues>
 *   <AnticipatedChanges>
 *****************************************************************************
 *
 *  $Revision: 105 $ $Author: coopht $
 *  $Date: 2008-02-20 18:03:45 +0000 (Wed, 20 Feb 2008) $
 *****************************************************************************/

#include <iostream>
#include <dlfcn.h>

#include "jabber.h"

using namespace std;

void err (string msg)
{
  cout << msg << endl;
  exit (-1);
}

int main ()
{
  string msg = "127.0.0.1";

  Jabber *j = new Jabber ();
  string str = j->jcreateStream (msg);
  
  if (str.find (msg) == string::npos)
    return -1;
    
  
  return 0;   
}
